import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SMaxProcess } from "./SMaxProcess";
type int = number;
//class SCopyRoomOperation
    
    export  class SCopyRoomOperation extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCopyRoomOperation();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.operation);
            arg1.writeInt(this.copyCode);
            arg1.writeInt(this.npcId);
            this.maxProcess.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.operation = arg1.readInt();
            this.copyCode = arg1.readInt();
            this.npcId = arg1.readInt();
            this.maxProcess = new SMaxProcess();
            this.maxProcess.__read(arg1);
            return;
        }

        public /* const */_type: int=41;

        public /* var */operation: int;

        public /* var */copyCode: int;

        public /* var */npcId: int;

        public /* var */maxProcess: SMaxProcess;

        public static /* var */_regist: SCopyRoomOperation;
    }

            SCopyRoomOperation._regist = new SCopyRoomOperation(true);
        